package com.mengmeng.demo.service.impl;

import com.mengmeng.demo.mapper.ApplicationMapper;
import com.mengmeng.demo.user.application;
import com.mengmeng.demo.service.ApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// 接口实现类
@Service
public class ApplicationServiceImpl implements ApplicationService {
    @Autowired
    ApplicationMapper appMapper;



    @Override
    public List<application> getAllapp() {
        return appMapper.getAllapp();
    }

    @Override
    public boolean deleteapp(Integer ssoid) {
        return appMapper.deleteBySSOId(ssoid);
    }

    @Override
    public boolean updateapp(application app) {
        return appMapper.updateapp(app);
    }

    @Override
    public boolean inserteapp(application app) {
        return appMapper.inserteapp(app);
    }

    @Override
    public List<application> getBySSOId(int ssoid) {
        return appMapper.getBySSOId(ssoid);
    }
}
